/*
 * @Author: your name
 * @Date: 2021-04-20 14:41:09
 * @LastEditTime: 2021-04-21 09:49:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-template-master\src\api\shopList.js
 */
import request from '@/utils/request'
// 获取商家列表
export default {
  getShopList ({ latitude = 39.90469, longitude = 116.407173, offset = 0, limit = 20 }) {
    return request.get(`/shopping/restaurants?latitude=${latitude}&longitude=${longitude}&offset=${offset}&limit=${limit}`)
  },
  // 获取商品数量
  getShopNum () {
    return request.get('/shopping/restaurants/count')
  },
  // 点击获取所有商铺分类
  emitShop () {
    return request.get('/shopping/v2/restaurant/category')
  },
  // 修改商铺
  updataShop (data) {
    return request.post('/shopping/updateshop', data)
  }
}